<?php
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'TEMPLATEPATH', dirname(__FILE__) );
/*
-----------------------------------------
eshopper - December 2010 Shape 5 Club Template
-----------------------------------------
Site:      www.shape5.com
Email:     contact@shape5.com
@license:  Copyrighted Commercial Software
@copyright (C) 2010 Shape 5

*/

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<?php

// It is recommended that you do not edit below this line.
///////////////////////////////////////////////////////////////////////////////////////

require( TEMPLATEPATH.DS."libs/parameters.php");
require( TEMPLATEPATH.DS."libs/general_functions.php");
require( TEMPLATEPATH.DS."libs/module_calcs.php");

// Mobile device settings

if ($s5_mobile_device_enable_disable == "enabled") {
	require( TEMPLATEPATH.DS."libs/mobile_device_detect.php");
	mobile_device_detect();
	if(isset($_GET['switch'])){
		$mobile = $_GET['switch']; // should be either 1 for true or empty for false
		setcookie('switch',$_GET['switch']); // set a cookie
		if(isset($_SERVER['HTTP_REFERER'])){ // if the referer is set send the user there
			header('Location:'.$_SERVER['HTTP_REFERER']);
			exit;
		}
	}else if(isset($_COOKIE['switch'])){ // if the cookie is set use it
		$mobile = $_COOKIE['switch'];
	}else{ // else use the function to detect if it's a mobile or not
		$mobile = mobile_device_detect();
	}
}
if ($s5_mobile_device_enable_disable == "disabled") {
	$mobile = false;
}
if ($mobile==true) {
	require( TEMPLATEPATH.DS."libs/mobile_device_menu.php");
}

?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<?php if($mobile==true){ ?>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=1;" />
<meta name="apple-touch-fullscreen" content="YES" />
<?php } ?>

<link rel="stylesheet" href="<?php echo $LiveSiteUrl ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $LiveSiteUrl ?>templates/system/css/general.css" type="text/css" />

<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/template_default.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/template.css" rel="stylesheet" type="text/css" media="screen" />

<?php if($mobile==true){ ?>
<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/mobile_device.css" rel="stylesheet" type="text/css" media="screen" />
<?php } ?>

<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/com_content.css" rel="stylesheet" type="text/css" media="screen" />

<?php if($mobile==false){ ?>
<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/s5_suckerfish.css" rel="stylesheet" type="text/css" media="screen" />
<?php } ?>

<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/editor.css" rel="stylesheet" type="text/css" media="screen" />

<?php if($s5_thirdparty == "enabled") { ?>
<link href="<?php echo $LiveSiteUrl;?>templates/eshopper/css/thirdparty.css" rel="stylesheet" type="text/css" media="screen" />
<?php } ?>

<?php if($this->direction == "rtl") { ?>
<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/template_rtl.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/editor_rtl.css" rel="stylesheet" type="text/css" media="screen" />
<?php if($mobile==true){ ?>
<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/css/mobile_device_rtl.css" rel="stylesheet" type="text/css" media="screen" />
<?php } ?>
<?php } ?>

<?php if(($s5_fonts != "Arial") || ($s5_fonts != "Helvetica")|| ($s5_fonts != "Sans-Serif")) { ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $s5_fonts;?>" />
<?php } ?>

<?php if ($s5_multibox  == "yes") { 
JHTML::_('behavior.mootools');
?>
<link href="<?php echo $LiveSiteUrl;?>templates/eshopper/css/multibox/multibox.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $LiveSiteUrl;?>templates/eshopper/css/multibox/ajax.css" rel="stylesheet" type="text/css" media="screen" />
<?php if ($s5_moover  == "moo112") { ?>
<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>templates/eshopper/js/multibox/overlay.js"></script>
<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>templates/eshopper/js/multibox/multibox.js"></script>
<?php } ?>
<?php if ($s5_moover  == "moo124") { ?>
<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>templates/eshopper/js/multibox/mootools124/overlay.js"></script>
<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>templates/eshopper/js/multibox/mootools124/multibox.js"></script>
<?php } ?>
<script type="text/javascript" src="<?php echo $LiveSiteUrl;?>templates/eshopper/js/multibox/AC_RunActiveContent.js"></script>
<?php } ?>


<?php if ($s5_jsmenu == "jq" && $mobile==false) { ?>
<?php if (($s5_menu  == "1") || ($s5_menu  == "3") || ($s5_menu  == "4")) { ?>
<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/jquery13.js"></script>
<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/jquery_no_conflict.js"></script>
<script type="text/javascript">
<?php if ($s5_menu  == "3") { ?>
var s5_fading_menu = "yes";
<?php } ?>
<?php if ($s5_menu  != "3") { ?>
var s5_fading_menu = "no";
<?php } ?>
function s5_jqmainmenu(){
jQuery(" #navlist ul ").css({display: "none"}); // Opera Fix
jQuery(" #s5_navv li").hover(function(){
		jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).<?php if ($s5_menu  == "1") { ?>show(400)<?php } ?><?php if ($s5_menu  == "3") { ?>fadeIn(400)<?php } ?><?php if ($s5_menu  == "4") { ?>slideDown(400)<?php } ?>;
		},function(){jQuery(this).find('ul:first').css({visibility: "hidden"});	});}
  jQuery(document).ready(function(){ s5_jqmainmenu();});
</script>
<?php } ?>
<?php } ?>

<link href="<?php echo $LiveSiteUrl ?>templates/eshopper/favicon.ico" rel="shortcut icon" type="image/x-icon" />

<?php if($browser == "ie7" && $s5_menu != "5" && $mobile==false) { ?>
<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/IEsuckerfish.js"></script>
<?php } ?>

<?php if($s5_font_resizer == "yes" && $mobile==false) { ?>
<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/s5_font_adjuster.js"></script>
<?php } ?>

<style type="text/css"> 

body {font-family: '<?php echo $s5_fonts;?>',Helvetica,Arial,Sans-Serif ;} 

#s5_cart_wrap {
background:#<?php echo $s5_highlight ?> url("<?php echo $LiveSiteUrl ?>templates/eshopper/images/s5_cart_l.png") no-repeat top left;
}

.addtocart_button, .addtocart_button_module, #s5_md_login, #s5_md_register {
background:#<?php echo $s5_highlight ?>;
}

#s5_search_wrap .button {
background:#<?php echo $s5_highlight ?> url("<?php echo $LiveSiteUrl ?>templates/eshopper/images/s5_search_button_bg.png") no-repeat top left;
}

#vmMainPage h3, .componentheading, #comments a, #s5_vm_acc_active_a, #s5_middle_menu_wrap a, .button, .s5_light_row .s5_h3_first, #s5_md_main_content_wrap a, .s5_light_row a, #cboxContent h3, #s5_md_main_content_wrap .contentpagetitle, .s5_light_row .contentpagetitle, #s5_md_main_content_wrap .contentheading, .s5_light_row .contentheading, .module_round_box .menu #current a, .module_round_box .menu #current a, #s5_md_main_content_wrap h2, .s5_light_row h2, #s5_md_main_content_wrap h4, .s5_light_row h4, div.s5_accordion_menu_element #current a {
color:#<?php echo $s5_highlight ?>;
}

.module_round_box .menu #current ul li a {
color:#FFFFFF;
}

<?php if ($browser == "ie7") { ?>
#s5_search_wrap .button {
display:none;
}
.s5_h3_tag_wrap {
margin-top:-18px;
margin-right:8px;
}
#s5_accordion_menu h3.s5_am_parent {
margin-bottom:-8px;
}
<?php } ?>
<?php if ($browser == "ie7" || $browser == "ie8") { ?>
.s5_lr_tab_inner {
writing-mode: tb-rl;
}
.s5_h3_tag_a {
display:inline;
}
<?php } ?>

<?php if($s5_thirdparty == "enabled") { ?>
/* k2 stuff */
div.itemHeader h2.itemTitle, div.catItemHeader h3.catItemTitle, h3.userItemTitle a {font-family: '<?php echo $s5_fonts;?>',Helvetica,Arial,Sans-Serif ;} 
<?php } ?>	

</style>

</head>

<body id="s5_body">

<!-- Mobile version -->	
<?php if($mobile==true){ 
require( TEMPLATEPATH.DS."libs/mobile_device_layout.php");
} ?>
<!-- End mobile version -->	

<!-- PC version -->	
<?php if($mobile==false){ ?>

	<!-- Fixed tabs -->	
	
	<!-- Called by javascript to validate text rotate with W3C -->	
	<?php if ($browser != "ie7" && $browser != "ie8") { ?>
		<script type="text/javascript">//<![CDATA[
		document.write('<style type="text/css">.s5_lr_tab_inner {-webkit-transform: rotate(-270deg);-moz-transform: rotate(-270deg);-o-transform: rotate(90deg);}</style>');
		//]]></script>
	<?php } ?>

	<?php if($s5_lr_tab1_text != "") { ?>
		<div class="<?php echo $s5_lr_tab1_class;?> s5_lr_tab" <?php if($s5_lr_tab1_click != "") { ?>onclick="window.document.location.href='<?php echo $s5_lr_tab1_click; ?>'"<?php } ?> style="color:#<?php echo $s5_lr_tab_font; ?>;background-color:#<?php echo $s5_lr_tab_color; ?>;border:2px solid #<?php echo $s5_lr_tab_border; ?>;<?php if($s5_lr_tab1_left_right == "left") { ?>left:-2px;<?php } ?><?php if($s5_lr_tab1_left_right == "right") { ?>right:-2px;<?php } ?>top:<?php echo $s5_lr_tab1_top_percent;?>%;height:<?php echo $s5_lr_tab1_height ?>px" id="s5_lr_tab1">
			<div class="s5_lr_tab_inner" id="s5_lr_tab_inner1">
				<?php echo $s5_lr_tab1_text; ?>
			</div>
		</div>
	<?php } ?>

	<?php if($s5_lr_tab2_text != "") { ?>
		<div class="<?php echo $s5_lr_tab2_class;?> s5_lr_tab" <?php if($s5_lr_tab2_click != "") { ?>onclick="window.document.location.href='<?php echo $s5_lr_tab2_click; ?>'"<?php } ?> style="color:#<?php echo $s5_lr_tab_font; ?>;background-color:#<?php echo $s5_lr_tab_color; ?>;border:2px solid #<?php echo $s5_lr_tab_border; ?>;<?php if($s5_lr_tab2_left_right == "left") { ?>left:-2px;<?php } ?><?php if($s5_lr_tab2_left_right == "right") { ?>right:-2px;<?php } ?>top:<?php echo $s5_lr_tab2_top_percent;?>%;height:<?php echo $s5_lr_tab2_height ?>px" id="s5_lr_tab2">
			<div class="s5_lr_tab_inner" id="s5_lr_tab_inner1">
				<?php echo $s5_lr_tab2_text; ?>
			</div>
		</div>
	<?php } ?>
	<!-- End fixed tabs -->	

	<div id="s5_main_body_wrap">
	
		<div id="s5_width_wrap" style="width:<?php echo $s5_body_width; echo $s5_fixed_fluid ?>">
			<!-- Header -->	
			<div id="s5_header_wrap">
			
				<?php if($s5_pos_logo == "published") { ?>
					<div id="s5_logo_module" onclick="window.document.location.href='<?php echo $LiveSiteUrl ?>'">
						<jdoc:include type="modules" name="logo" style="notitle" />
					</div>	
				<?php } else { ?>
					<div id="s5_logo" onclick="window.document.location.href='<?php echo $LiveSiteUrl ?>'"></div>
				<?php } ?>
				
				<?php if ($s5_menu  != "5") { ?>
					<!-- Menu -->	
					<div id="s5_navv">
										
						<?php mosShowListMenu($menu_name);	?>
						
						<?php if ($s5_jsmenu  == "s5") { ?>
							<?php if ($s5_menu  == "1") { ?>
								<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/s5_drop_in_no_moo_menu.js"></script>																		
							<?php } ?>
							<?php if ($s5_menu  == "2") { ?>
								<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/s5_fading_no_moo_menu.js"></script>																		
							<?php } ?>	
							<?php if ($s5_menu  == "3") { ?>
								<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/s5_scroll_down_no_moo_menu.js"></script>																		
							<?php } ?>	
						<?php } ?>	
						
						<script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/s5_menu_active_and_parent_links.js"></script>	
						
					</div>
					<!-- End Menu -->	
					
				<?php } ?>
				
				<div style="clear:both; height:0px"></div>
				
			</div>
			<!-- End Header -->	
			
			<!-- Top Row1 -->	
			<?php if ($s5_pos_cart == "published" || $s5_pos_breadcrumb == "published" || $s5_pos_search == "published" || $s5_font_resizer == "yes" || $s5_pos_top_row1_1 == "published" || $s5_pos_top_row1_2 == "published" || $s5_pos_top_row1_3 == "published" || $s5_pos_top_row1_4 == "published" || $s5_pos_top_row1_5 == "published" || $s5_pos_top_row1_6 == "published") { ?>
				<!-- First dark bar, holding search, breadcrumb, fonts and cart -->	
				<?php if ($s5_pos_cart == "published" || $s5_pos_breadcrumb == "published" || $s5_pos_search == "published" || $s5_font_resizer == "yes") { ?>
					
					<div id="s5_dark_holder_bar_1" class="s5_dark_holder_bar_l"<?php if ($s5_pos_top_row1_1 == "unpublished" && $s5_pos_top_row1_2 == "unpublished" && $s5_pos_top_row1_3 == "unpublished" && $s5_pos_top_row1_4 == "unpublished" && $s5_pos_top_row1_5 == "unpublished" && $s5_pos_top_row1_6 == "unpublished") { ?> style="margin-bottom:20px; height:51px"<?php } ?>>
					<div class="s5_dark_holder_bar_r"<?php if ($s5_pos_top_row1_1 == "unpublished" && $s5_pos_top_row1_2 == "unpublished" && $s5_pos_top_row1_3 == "unpublished" && $s5_pos_top_row1_4 == "unpublished" && $s5_pos_top_row1_5 == "unpublished" && $s5_pos_top_row1_6 == "unpublished") { ?> style="height:51px"<?php } ?>>
					<div class="s5_dark_holder_bar_m"<?php if ($s5_pos_top_row1_1 == "unpublished" && $s5_pos_top_row1_2 == "unpublished" && $s5_pos_top_row1_3 == "unpublished" && $s5_pos_top_row1_4 == "unpublished" && $s5_pos_top_row1_5 == "unpublished" && $s5_pos_top_row1_6 == "unpublished") { ?> style="height:51px"<?php } ?>>
					
						<?php if ($s5_pos_breadcrumb == "published") { ?>
						
							<div id="s5_breadcrumb_wrap">
								<jdoc:include type="modules" name="breadcrumb" style="notitle" />
							</div>
							
						<?php } ?>
						
						<?php if ($s5_pos_cart == "published") { ?>
						
							<div id="s5_cart_wrap">
								<jdoc:include type="modules" name="cart" style="notitle" />
							</div>
								
						<?php } ?>
						
						<?php if ($s5_pos_search == "published") { ?>
						
							<div id="s5_search_wrap">
								<jdoc:include type="modules" name="search" style="notitle" />
							</div>
							
						<?php } ?>
						
						<?php if($s5_font_resizer == "yes") { ?>
							<div id="fontControls"></div>
						<?php } ?>
					
					</div>
					</div>
					</div>
				
				<?php } ?>
				<!-- End first dark bar -->	
					
				<?php if ($s5_pos_top_row1_1 == "published" || $s5_pos_top_row1_2 == "published" || $s5_pos_top_row1_3 == "published" || $s5_pos_top_row1_4 == "published" || $s5_pos_top_row1_5 == "published" ||$s5_pos_top_row1_6 == "published") { ?>
					
					<div id="s5_top_row1_wrap" class="s5_dark_row">
					
						<div id="s5_top_row1">
						<div id="s5_top_row1_inner">
						
							<?php if ($s5_pos_top_row1_1 == "published") { ?>
								<div id="s5_pos_top_row1_1" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_1_width ?>%">
									<jdoc:include type="modules" name="top_row1_1" style="round_box" />
								</div>
							<?php } ?>
							
							<?php if ($s5_pos_top_row1_2 == "published") { ?>
								<div id="s5_pos_top_row1_2" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_2_width ?>%">
									<jdoc:include type="modules" name="top_row1_2" style="round_box" />
								</div>
							<?php } ?>
							
							<?php if ($s5_pos_top_row1_3 == "published") { ?>
								<div id="s5_pos_top_row1_3" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_3_width ?>%">
									<jdoc:include type="modules" name="top_row1_3" style="round_box" />
								</div>
							<?php } ?>
							
							<?php if ($s5_pos_top_row1_4 == "published") { ?>
								<div id="s5_pos_top_row1_4" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_4_width ?>%">
									<jdoc:include type="modules" name="top_row1_4" style="round_box" />
								</div>
							<?php } ?>
							
							<?php if ($s5_pos_top_row1_5 == "published") { ?>
								<div id="s5_pos_top_row1_5" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_5_width ?>%">
									<jdoc:include type="modules" name="top_row1_5" style="round_box" />
								</div>
							<?php } ?>
							
							<?php if ($s5_pos_top_row1_6 == "published") { ?>
								<div id="s5_pos_top_row1_6" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_6_width ?>%">
									<jdoc:include type="modules" name="top_row1_6" style="round_box" />
								</div>
							<?php } ?>
							
							<div style="clear:both; height:0px"></div>

						</div>
						</div>
				
					</div>
				
				<?php } ?>
			
			<?php } ?>
			<!-- End Top Row1 -->	
			<!-- Top Row2 -->	
			<?php if ($s5_pos_top_row2_1 == "published" || $s5_pos_top_row2_2 == "published" || $s5_pos_top_row2_3 == "published" || $s5_pos_top_row2_4 == "published" || $s5_pos_top_row2_5 == "published" || $s5_pos_top_row2_6 == "published") { ?>
				
				<div id="s5_dark_holder_bar_2" class="s5_dark_holder_bar_l" style="display:none">
				<div class="s5_dark_holder_bar_r">
				<div class="s5_dark_holder_bar_m">
				</div>
				</div>
				</div>
			
				<div id="s5_top_row2_wrap" class="s5_dark_row">
					
					<div id="s5_top_row2">
					<div id="s5_top_row2_inner">
					
						<?php if ($s5_pos_top_row2_1 == "published") { ?>
							<div id="s5_pos_top_row2_1" class="s5_float_left" style="width:<?php echo $s5_pos_top_row2_1_width ?>%">
								<jdoc:include type="modules" name="top_row2_1" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row2_2 == "published") { ?>
							<div id="s5_pos_top_row2_2" class="s5_float_left" style="width:<?php echo $s5_pos_top_row2_2_width ?>%">
								<jdoc:include type="modules" name="top_row2_2" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row2_3 == "published") { ?>
							<div id="s5_pos_top_row2_3" class="s5_float_left" style="width:<?php echo $s5_pos_top_row2_3_width ?>%">
								<jdoc:include type="modules" name="top_row2_3" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row2_4 == "published") { ?>
							<div id="s5_pos_top_row2_4" class="s5_float_left" style="width:<?php echo $s5_pos_top_row2_4_width ?>%">
								<jdoc:include type="modules" name="top_row2_4" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row2_5 == "published") { ?>
							<div id="s5_pos_top_row2_5" class="s5_float_left" style="width:<?php echo $s5_pos_top_row2_5_width ?>%">
								<jdoc:include type="modules" name="top_row2_5" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row2_6 == "published") { ?>
							<div id="s5_pos_top_row2_6" class="s5_float_left" style="width:<?php echo $s5_pos_top_row2_6_width ?>%">
								<jdoc:include type="modules" name="top_row2_6" style="round_box" />
							</div>
						<?php } ?>						
						<div style="clear:both; height:0px"></div>

					</div>
					</div>
				
				</div>
				
				<script type="text/javascript">
					if (document.getElementById("s5_top_row2").innerHTML.indexOf("s5_h3_first") > 1) { document.getElementById("s5_dark_holder_bar_2").style.display = "block"; }
				</script>

			<?php } ?>
			<!-- End Top Row2 -->	
			<!-- Top Row3 -->	
			<?php if ($s5_pos_top_row3_1 == "published" || $s5_pos_top_row3_2 == "published" || $s5_pos_top_row3_3 == "published" || $s5_pos_top_row3_4 == "published" || $s5_pos_top_row3_5 == "published" || $s5_pos_top_row3_6 == "published") { ?>
				
				<div id="s5_light_holder_bar_1" class="s5_light_holder_bar_l" style="display:none">
				<div class="s5_light_holder_bar_r">
				<div class="s5_light_holder_bar_m">
				</div>
				</div>
				</div>
			
				<div id="s5_top_row3_wrap" class="s5_light_row">
					
					<div id="s5_top_row3">
					<div id="s5_top_row3_inner">
					
						<?php if ($s5_pos_top_row3_1 == "published") { ?>
							<div id="s5_pos_top_row3_1" class="s5_float_left" style="width:<?php echo $s5_pos_top_row3_1_width ?>%">
								<jdoc:include type="modules" name="top_row3_1" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row3_2 == "published") { ?>
							<div id="s5_pos_top_row3_2" class="s5_float_left" style="width:<?php echo $s5_pos_top_row3_2_width ?>%">
								<jdoc:include type="modules" name="top_row3_2" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row3_3 == "published") { ?>
							<div id="s5_pos_top_row3_3" class="s5_float_left" style="width:<?php echo $s5_pos_top_row3_3_width ?>%">
								<jdoc:include type="modules" name="top_row3_3" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row3_4 == "published") { ?>
							<div id="s5_pos_top_row3_4" class="s5_float_left" style="width:<?php echo $s5_pos_top_row3_4_width ?>%">
								<jdoc:include type="modules" name="top_row3_4" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row3_5 == "published") { ?>
							<div id="s5_pos_top_row3_5" class="s5_float_left" style="width:<?php echo $s5_pos_top_row3_5_width ?>%">
								<jdoc:include type="modules" name="top_row3_5" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_top_row3_6 == "published") { ?>
							<div id="s5_pos_top_row3_6" class="s5_float_left" style="width:<?php echo $s5_pos_top_row3_6_width ?>%">
								<jdoc:include type="modules" name="top_row3_6" style="round_box" />
							</div>
						<?php } ?>						
						<div style="clear:both; height:0px"></div>

					</div>
					</div>
				
				</div>
				
				<script type="text/javascript">
					if (document.getElementById("s5_top_row3").innerHTML.indexOf("s5_h3_first") > 1) { document.getElementById("s5_light_holder_bar_1").style.display = "block"; }
				</script>

			<?php } ?>
			<!-- End Top Row3 -->	
			<!-- Center area -->			
			<?php if ($s5_frontpage == "yes" || $s5_pos_middle_menu == "published" || $s5_pos_custom_1 == "published" || $s5_pos_left_top == "published" || $s5_pos_left == "published" || $s5_pos_left_inset == "published" || $s5_pos_left_bottom == "published" || $s5_pos_right_top == "published" || $s5_pos_right == "published" || $s5_pos_right_inset == "published" || $s5_pos_right_bottom == "published" || $s5_pos_middle_top_1 == "published" || $s5_pos_middle_top_2 == "published" || $s5_pos_middle_top_3 == "published" || $s5_pos_middle_top_4 == "published" || $s5_pos_middle_top_5 == "published" || $s5_pos_middle_top_6 == "published" || $s5_pos_above_body_1 == "published" || $s5_pos_above_body_2 == "published" || $s5_pos_above_body_3 == "published" || $s5_pos_above_body_4 == "published" || $s5_pos_above_body_5 == "published" || $s5_pos_above_body_6 == "published" || $s5_pos_middle_bottom_1 == "published" || $s5_pos_middle_bottom_2 == "published" || $s5_pos_middle_bottom_3 == "published" || $s5_pos_middle_bottom_4 == "published" || $s5_pos_middle_bottom_5 == "published" || $s5_pos_middle_bottom_6 == "published" || $s5_pos_below_body_1 == "published" || $s5_pos_below_body_2 == "published" || $s5_pos_below_body_3 == "published" || $s5_pos_below_body_4 == "published" || $s5_pos_below_body_5 == "published" || $s5_pos_below_body_6) { ?>
			
				<?php if ($s5_pos_middle_menu == "published" || $s5_pos_custom_1 == "published") { ?>
				
					<div id="s5_light_holder_bar_2" class="s5_light_holder_bar_l">
					<div class="s5_light_holder_bar_r">
					<div class="s5_light_holder_bar_m">
					
						<?php if ($s5_pos_middle_menu == "published") { ?>
						
							<div id="s5_middle_menu_wrap">
								<jdoc:include type="modules" name="middle_menu" style="notitle" />
							</div>
							
						<?php } ?>
						
						<?php if ($s5_pos_custom_1 == "published") { ?>
						
							<div id="s5_custom_1_wrap">
								<jdoc:include type="modules" name="custom_1" style="notitle" />
							</div>
							
						<?php } ?>
					
					</div>
					</div>
					</div>
				
				<?php } ?>
				<!-- Columns wrap, contains left, right and center columns -->	
				<div id="s5_columns_wrap" class="s5_light_row">
				<div id="s5_columns_wrap_inner">
					
					<div id="s5_center_column_wrap">
					<div id="s5_center_column_wrap_inner" style="margin-left:<?php echo $s5_center_column_margin_left ?>px; margin-right:<?php echo $s5_center_column_margin_right ?>px;">
						<!-- Make sure something is present in the center area, if frontpage is set to no and there are no modules this entire area collapses -->	
						<?php if ($s5_frontpage == "yes" || $s5_pos_above_body_1 == "published" || $s5_pos_above_body_2 == "published" || $s5_pos_above_body_3 == "published" || $s5_pos_above_body_4 == "published" || $s5_pos_above_body_5 == "published" || $s5_pos_above_body_6 == "published") { ?>
							
							<?php if ($s5_pos_middle_top_1 == "published" || $s5_pos_middle_top_2 == "published" || $s5_pos_middle_top_3 == "published" || $s5_pos_middle_top_4 == "published" || $s5_pos_middle_top_5 == "published" || $s5_pos_middle_top_6 == "published") { ?>
							
								<div id="s5_middle_top_wrap">
									
									<div id="s5_middle_top">
									<div id="s5_middle_top_inner">
									
										<?php if ($s5_pos_middle_top_1 == "published") { ?>
											<div id="s5_pos_middle_top_1" class="s5_float_left" style="width:<?php echo $s5_pos_middle_top_1_width ?>%">
												<jdoc:include type="modules" name="middle_top_1" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_top_2 == "published") { ?>
											<div id="s5_pos_middle_top_2" class="s5_float_left" style="width:<?php echo $s5_pos_middle_top_2_width ?>%">
												<jdoc:include type="modules" name="middle_top_2" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_top_3 == "published") { ?>
											<div id="s5_pos_middle_top_3" class="s5_float_left" style="width:<?php echo $s5_pos_middle_top_3_width ?>%">
												<jdoc:include type="modules" name="middle_top_3" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_top_4 == "published") { ?>
											<div id="s5_pos_middle_top_4" class="s5_float_left" style="width:<?php echo $s5_pos_middle_top_4_width ?>%">
												<jdoc:include type="modules" name="middle_top_4" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_top_5 == "published") { ?>
											<div id="s5_pos_middle_top_5" class="s5_float_left" style="width:<?php echo $s5_pos_middle_top_5_width ?>%">
												<jdoc:include type="modules" name="middle_top_5" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_top_6 == "published") { ?>
											<div id="s5_pos_middle_top_6" class="s5_float_left" style="width:<?php echo $s5_pos_middle_top_6_width ?>%">
												<jdoc:include type="modules" name="middle_top_6" style="round_box" />
											</div>
										<?php } ?>						
										<div style="clear:both; height:0px"></div>

									</div>
									</div>
								
								</div>

							<?php } ?>
							
							<?php if ($s5_frontpage == "yes" || $s5_pos_above_body_1 == "published" || $s5_pos_above_body_2 == "published" || $s5_pos_above_body_3 == "published" || $s5_pos_above_body_4 == "published" || $s5_pos_above_body_5 == "published" || $s5_pos_above_body_6 == "published" || $s5_pos_below_body_1 == "published" || $s5_pos_below_body_2 == "published" || $s5_pos_below_body_3 == "published" || $s5_pos_below_body_4 == "published" || $s5_pos_below_body_5 == "published" || $s5_pos_below_body_6 == "published") { ?>
								
								<div id="s5_component_wrap">
								<div id="s5_component_wrap_inner">
								
									<?php if ($s5_pos_above_body_1 == "published" || $s5_pos_above_body_2 == "published" || $s5_pos_above_body_3 == "published" || $s5_pos_above_body_4 == "published" || $s5_pos_above_body_5 == "published" || $s5_pos_above_body_6 == "published") { ?>
								
										<div id="s5_above_body_wrap">
											
											<div id="s5_above_body">
											<div id="s5_above_body_inner">
											
												<?php if ($s5_pos_above_body_1 == "published") { ?>
													<div id="s5_pos_above_body_1" class="s5_float_left" style="width:<?php echo $s5_pos_above_body_1_width ?>%">
														<jdoc:include type="modules" name="above_body_1" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_above_body_2 == "published") { ?>
													<div id="s5_pos_above_body_2" class="s5_float_left" style="width:<?php echo $s5_pos_above_body_2_width ?>%">
														<jdoc:include type="modules" name="above_body_2" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_above_body_3 == "published") { ?>
													<div id="s5_pos_above_body_3" class="s5_float_left" style="width:<?php echo $s5_pos_above_body_3_width ?>%">
														<jdoc:include type="modules" name="above_body_3" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_above_body_4 == "published") { ?>
													<div id="s5_pos_above_body_4" class="s5_float_left" style="width:<?php echo $s5_pos_above_body_4_width ?>%">
														<jdoc:include type="modules" name="above_body_4" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_above_body_5 == "published") { ?>
													<div id="s5_pos_above_body_5" class="s5_float_left" style="width:<?php echo $s5_pos_above_body_5_width ?>%">
														<jdoc:include type="modules" name="above_body_5" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_above_body_6 == "published") { ?>
													<div id="s5_pos_above_body_6" class="s5_float_left" style="width:<?php echo $s5_pos_above_body_6_width ?>%">
														<jdoc:include type="modules" name="above_body_6" style="xhtml" />
													</div>
												<?php } ?>						
												<div style="clear:both; height:0px"></div>

											</div>
											</div>
										
										</div>

									<?php } ?>
									
									<?php if ($s5_frontpage == "yes") { ?>
									
										<jdoc:include type="message" />
										<jdoc:include type="component" />
										<div style="clear:both;height:0px"></div>
										
									<?php } ?>
									
									<?php if ($s5_pos_below_body_1 == "published" || $s5_pos_below_body_2 == "published" || $s5_pos_below_body_3 == "published" || $s5_pos_below_body_4 == "published" || $s5_pos_below_body_5 == "published" || $s5_pos_below_body_6 == "published") { ?>
								
										<div id="s5_below_body_wrap">
											
											<div id="s5_below_body">
											<div id="s5_below_body_inner">
											
												<?php if ($s5_pos_below_body_1 == "published") { ?>
													<div id="s5_pos_below_body_1" class="s5_float_left" style="width:<?php echo $s5_pos_below_body_1_width ?>%">
														<jdoc:include type="modules" name="below_body_1" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_below_body_2 == "published") { ?>
													<div id="s5_pos_below_body_2" class="s5_float_left" style="width:<?php echo $s5_pos_below_body_2_width ?>%">
														<jdoc:include type="modules" name="below_body_2" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_below_body_3 == "published") { ?>
													<div id="s5_pos_below_body_3" class="s5_float_left" style="width:<?php echo $s5_pos_below_body_3_width ?>%">
														<jdoc:include type="modules" name="below_body_3" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_below_body_4 == "published") { ?>
													<div id="s5_pos_below_body_4" class="s5_float_left" style="width:<?php echo $s5_pos_below_body_4_width ?>%">
														<jdoc:include type="modules" name="below_body_4" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_below_body_5 == "published") { ?>
													<div id="s5_pos_below_body_5" class="s5_float_left" style="width:<?php echo $s5_pos_below_body_5_width ?>%">
														<jdoc:include type="modules" name="below_body_5" style="xhtml" />
													</div>
												<?php } ?>
												
												<?php if ($s5_pos_below_body_6 == "published") { ?>
													<div id="s5_pos_below_body_6" class="s5_float_left" style="width:<?php echo $s5_pos_below_body_6_width ?>%">
														<jdoc:include type="modules" name="below_body_6" style="xhtml" />
													</div>
												<?php } ?>						
												<div style="clear:both; height:0px"></div>

											</div>
											</div>
										
										</div>

									<?php } ?>
									
								</div>
								</div>
								
							<?php } ?>
							
							<?php if ($s5_pos_middle_bottom_1 == "published" || $s5_pos_middle_bottom_2 == "published" || $s5_pos_middle_bottom_3 == "published" || $s5_pos_middle_bottom_4 == "published" || $s5_pos_middle_bottom_5 == "published" || $s5_pos_middle_bottom_6 == "published") { ?>
							
								<div id="s5_middle_bottom_wrap">
									
									<div id="s5_middle_bottom">
									<div id="s5_middle_bottom_inner">
									
										<?php if ($s5_pos_middle_bottom_1 == "published") { ?>
											<div id="s5_pos_middle_bottom_1" class="s5_float_left" style="width:<?php echo $s5_pos_middle_bottom_1_width ?>%">
												<jdoc:include type="modules" name="middle_bottom_1" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_bottom_2 == "published") { ?>
											<div id="s5_pos_middle_bottom_2" class="s5_float_left" style="width:<?php echo $s5_pos_middle_bottom_2_width ?>%">
												<jdoc:include type="modules" name="middle_bottom_2" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_bottom_3 == "published") { ?>
											<div id="s5_pos_middle_bottom_3" class="s5_float_left" style="width:<?php echo $s5_pos_middle_bottom_3_width ?>%">
												<jdoc:include type="modules" name="middle_bottom_3" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_bottom_4 == "published") { ?>
											<div id="s5_pos_middle_bottom_4" class="s5_float_left" style="width:<?php echo $s5_pos_middle_bottom_4_width ?>%">
												<jdoc:include type="modules" name="middle_bottom_4" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_bottom_5 == "published") { ?>
											<div id="s5_pos_middle_bottom_5" class="s5_float_left" style="width:<?php echo $s5_pos_middle_bottom_5_width ?>%">
												<jdoc:include type="modules" name="middle_bottom_5" style="round_box" />
											</div>
										<?php } ?>
										
										<?php if ($s5_pos_middle_bottom_6 == "published") { ?>
											<div id="s5_pos_middle_bottom_6" class="s5_float_left" style="width:<?php echo $s5_pos_middle_bottom_6_width ?>%">
												<jdoc:include type="modules" name="middle_bottom_6" style="round_box" />
											</div>
										<?php } ?>						
										<div style="clear:both; height:0px"></div>

									</div>
									</div>
								
								</div>

							<?php } ?>
							
						<?php } ?>
						
					</div>
					</div>
					<!-- Left column -->	
					<?php if($s5_pos_left == "published" || $s5_pos_left_inset == "published" || $s5_pos_left_top == "published" || $s5_pos_left_bottom == "published") { ?>
						<div id="s5_left_column_wrap" class="s5_float_left" style="width:<?php echo $s5_left_column_width ?>px">
						<div id="s5_left_column_wrap_inner">
							<?php if($s5_pos_left_top == "published") { ?>
								<div id="s5_left_top_wrap" class="s5_float_left" style="width:<?php echo $s5_left_column_width ?>px">
									<jdoc:include type="modules" name="left_top" style="round_box" />
								</div>
							<?php } ?>
							<?php if($s5_pos_left == "published") { ?>
								<div id="s5_left_wrap" class="s5_float_left" style="width:<?php echo $s5_left_width ?>px">
									<jdoc:include type="modules" name="left" style="round_box" />
								</div>
							<?php } ?>
							<?php if($s5_pos_left_inset == "published") { ?>
								<div id="s5_left_inset_wrap" class="s5_float_left" style="width:<?php echo $s5_left_inset_width ?>px">
									<jdoc:include type="modules" name="left_inset" style="round_box" />
								</div>
							<?php } ?>
							<?php if($s5_pos_left_bottom == "published") { ?>
								<div id="s5_left_bottom_wrap" class="s5_float_left" style="width:<?php echo $s5_left_column_width ?>px">
									<jdoc:include type="modules" name="left_bottom" style="round_box" />
								</div>
							<?php } ?>
						</div>
						</div>
					<?php } ?>
					<!-- End Left column -->	
					<!-- Right column -->	
					<?php if($s5_pos_right == "published" || $s5_pos_right_inset == "published" || $s5_pos_right_top == "published" || $s5_pos_right_bottom == "published") { ?>
						<div id="s5_right_column_wrap" class="s5_float_left" style="width:<?php echo $s5_right_column_width ?>px; margin-left:-<?php echo $s5_right_column_width + $s5_left_column_width ?>px">
						<div id="s5_right_column_wrap_inner">
							<?php if($s5_pos_right_top == "published") { ?>
								<div id="s5_right_top_wrap" class="s5_float_left" style="width:<?php echo $s5_right_column_width ?>px">
									<jdoc:include type="modules" name="right_top" style="round_box" />
								</div>
							<?php } ?>
							<?php if($s5_pos_right_inset == "published") { ?>
								<div id="s5_right_inset_wrap" class="s5_float_left" style="width:<?php echo $s5_right_inset_width ?>px">
									<jdoc:include type="modules" name="right_inset" style="round_box" />
								</div>
							<?php } ?>
							<?php if($s5_pos_right == "published") { ?>
								<div id="s5_right_wrap" class="s5_float_left" style="width:<?php echo $s5_right_width ?>px">
									<jdoc:include type="modules" name="right" style="round_box" />
								</div>
							<?php } ?>
							<?php if($s5_pos_right_bottom == "published") { ?>
								<div id="s5_right_bottom_wrap" class="s5_float_left" style="width:<?php echo $s5_right_column_width ?>px">
									<jdoc:include type="modules" name="right_bottom" style="round_box" />
								</div>
							<?php } ?>
						</div>
						</div>
					<?php } ?>
					<!-- End Right column -->	
				</div>
				</div>
				<!-- End columns wrap -->	
			
			<?php } ?>
			<!-- End Center area -->	
			<?php if ($s5_pos_bottom_row1_1 == "published" || $s5_pos_bottom_row1_2 == "published" || $s5_pos_bottom_row1_3 == "published" || $s5_pos_bottom_row1_4 == "published" || $s5_pos_bottom_row1_5 == "published" || $s5_pos_bottom_row1_6 == "published") { ?>
				
				<div id="s5_light_holder_bar_3" class="s5_light_holder_bar_l" style="display:none">
				<div class="s5_light_holder_bar_r">
				<div class="s5_light_holder_bar_m">
				</div>
				</div>
				</div>
			
				<div id="s5_bottom_row1_wrap" class="s5_light_row">
					
					<div id="s5_bottom_row1">
					<div id="s5_bottom_row1_inner">
					
						<?php if ($s5_pos_bottom_row1_1 == "published") { ?>
							<div id="s5_pos_bottom_row1_1" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row1_1_width ?>%">
								<jdoc:include type="modules" name="bottom_row1_1" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row1_2 == "published") { ?>
							<div id="s5_pos_bottom_row1_2" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row1_2_width ?>%">
								<jdoc:include type="modules" name="bottom_row1_2" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row1_3 == "published") { ?>
							<div id="s5_pos_bottom_row1_3" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row1_3_width ?>%">
								<jdoc:include type="modules" name="bottom_row1_3" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row1_4 == "published") { ?>
							<div id="s5_pos_bottom_row1_4" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row1_4_width ?>%">
								<jdoc:include type="modules" name="bottom_row1_4" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row1_5 == "published") { ?>
							<div id="s5_pos_bottom_row1_5" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row1_5_width ?>%">
								<jdoc:include type="modules" name="bottom_row1_5" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row1_6 == "published") { ?>
							<div id="s5_pos_bottom_row1_6" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row1_6_width ?>%">
								<jdoc:include type="modules" name="bottom_row1_6" style="round_box" />
							</div>
						<?php } ?>						
						<div style="clear:both; height:0px"></div>

					</div>
					</div>
				
				</div>
				
				<script type="text/javascript">
					if (document.getElementById("s5_bottom_row1").innerHTML.indexOf("s5_h3_first") > 1) { document.getElementById("s5_light_holder_bar_3").style.display = "block"; }
				</script>

			<?php } ?>
			
			<?php if ($s5_pos_bottom_row2_1 == "published" || $s5_pos_bottom_row2_2 == "published" || $s5_pos_bottom_row2_3 == "published" || $s5_pos_bottom_row2_4 == "published" || $s5_pos_bottom_row2_5 == "published" || $s5_pos_bottom_row2_6 == "published") { ?>
				
				<div id="s5_dark_holder_bar_3" class="s5_dark_holder_bar_l" style="display:none">
				<div class="s5_dark_holder_bar_r">
				<div class="s5_dark_holder_bar_m">
				</div>
				</div>
				</div>
			
				<div id="s5_bottom_row2_wrap" class="s5_dark_row">
					
					<div id="s5_bottom_row2">
					<div id="s5_bottom_row2_inner">
					
						<?php if ($s5_pos_bottom_row2_1 == "published") { ?>
							<div id="s5_pos_bottom_row2_1" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row2_1_width ?>%">
								<jdoc:include type="modules" name="bottom_row2_1" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row2_2 == "published") { ?>
							<div id="s5_pos_bottom_row2_2" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row2_2_width ?>%">
								<jdoc:include type="modules" name="bottom_row2_2" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row2_3 == "published") { ?>
							<div id="s5_pos_bottom_row2_3" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row2_3_width ?>%">
								<jdoc:include type="modules" name="bottom_row2_3" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row2_4 == "published") { ?>
							<div id="s5_pos_bottom_row2_4" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row2_4_width ?>%">
								<jdoc:include type="modules" name="bottom_row2_4" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row2_5 == "published") { ?>
							<div id="s5_pos_bottom_row2_5" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row2_5_width ?>%">
								<jdoc:include type="modules" name="bottom_row2_5" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row2_6 == "published") { ?>
							<div id="s5_pos_bottom_row2_6" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row2_6_width ?>%">
								<jdoc:include type="modules" name="bottom_row2_6" style="round_box" />
							</div>
						<?php } ?>						
						<div style="clear:both; height:0px"></div>

					</div>
					</div>
				
				</div>
				
				<script type="text/javascript">
					if (document.getElementById("s5_bottom_row2").innerHTML.indexOf("s5_h3_first") > 1) { document.getElementById("s5_dark_holder_bar_3").style.display = "block"; }
				</script>

			<?php } ?>
			
			<?php if ($s5_pos_bottom_row3_1 == "published" || $s5_pos_bottom_row3_2 == "published" || $s5_pos_bottom_row3_3 == "published" || $s5_pos_bottom_row3_4 == "published" || $s5_pos_bottom_row3_5 == "published" || $s5_pos_bottom_row3_6 == "published") { ?>
				
				<div id="s5_dark_holder_bar_4" class="s5_dark_holder_bar_l" style="display:none">
				<div class="s5_dark_holder_bar_r">
				<div class="s5_dark_holder_bar_m">
				</div>
				</div>
				</div>
			
				<div id="s5_bottom_row3_wrap" class="s5_dark_row">
					
					<div id="s5_bottom_row3">
					<div id="s5_bottom_row3_inner">
					
						<?php if ($s5_pos_bottom_row3_1 == "published") { ?>
							<div id="s5_pos_bottom_row3_1" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row3_1_width ?>%">
								<jdoc:include type="modules" name="bottom_row3_1" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row3_2 == "published") { ?>
							<div id="s5_pos_bottom_row3_2" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row3_2_width ?>%">
								<jdoc:include type="modules" name="bottom_row3_2" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row3_3 == "published") { ?>
							<div id="s5_pos_bottom_row3_3" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row3_3_width ?>%">
								<jdoc:include type="modules" name="bottom_row3_3" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row3_4 == "published") { ?>
							<div id="s5_pos_bottom_row3_4" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row3_4_width ?>%">
								<jdoc:include type="modules" name="bottom_row3_4" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row3_5 == "published") { ?>
							<div id="s5_pos_bottom_row3_5" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row3_5_width ?>%">
								<jdoc:include type="modules" name="bottom_row3_5" style="round_box" />
							</div>
						<?php } ?>
						
						<?php if ($s5_pos_bottom_row3_6 == "published") { ?>
							<div id="s5_pos_bottom_row3_6" class="s5_float_left" style="width:<?php echo $s5_pos_bottom_row3_6_width ?>%">
								<jdoc:include type="modules" name="bottom_row3_6" style="round_box" />
							</div>
						<?php } ?>						
						<div style="clear:both; height:0px"></div>

					</div>
					</div>
				
				</div>
				
				<script type="text/javascript">
					if (document.getElementById("s5_bottom_row3").innerHTML.indexOf("s5_h3_first") > 1) { document.getElementById("s5_dark_holder_bar_4").style.display = "block"; }
				</script>

			<?php } ?>
			
			<div class="s5_dark_row" id="s5_footer_area_wrap">
			
				<div id="s5_footer_wrap">
					<?php include("templates/eshopper/libs/footer.php"); ?>
				</div>
				
				<?php if($s5_pos_bottom_menu) { ?>
					<div id="s5_bottom_menu_wrap">
						<jdoc:include type="modules" name="bottom_menu" style="notitle" />
					</div>	
				<?php } ?>
				<div style="clear:both; height:0px"></div>
			
			</div>
	
			<jdoc:include type="modules" name="debug" style="xhtml" />
			
			<?php if ($s5_tooltips  == "yes") { ?>
				<script type="text/javascript" language="javascript" src="<?php echo $LiveSiteUrl ?>templates/eshopper/js/tooltips.js"></script>
			<?php } ?>
			
			<?php if ($s5_multibox  == "yes") { ?>
			<script type="text/javascript">
				var s5mbox = {};
				window.addEvent('domready', function(){	s5mbox = new MultiBox('s5mb', {descClassName: 's5_multibox', <?php if ($s5_multioverlay  == "1") { ?>useOverlay: true<?php } else {?>useOverlay: false<?php } ?>, <?php if ($s5_multicontrols  == "1") { ?>showControls: true<?php } else {?>showControls: false<?php } ?>});	});
			</script>
			<?php } ?>
			
			<div style="clear:both; height:0px"></div>
		
		</div>
		
	</div>
	
<?php } ?>
<!-- End pc version -->	

</body>

</html>